﻿using DotNetExtensions.Core.IOC;
using DotNetExtensions.Core.MVC;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DotNetExtensions.Core.SqlSugar
{
    [Inject(Scope = InjectScope.Scoped)]
    [AutoInject]
    public class BaseService<TModel, TSession> where TModel : class, new() where TSession : class, new()
    {
        public readonly BaseRepository<TModel> Repository;
        public readonly Session<TSession> Session;
        public BaseService(Session<TSession> session, BaseRepository<TModel> baseRepository)
        {
            Session = session;
            Repository = baseRepository;
        }
    }
}
